package com.semlab.server.domain;

public class BaseConcept {
	
	protected String conceptId;
	protected String uri;
	private String FACEBOOK_URL = "http://www.facebook.com/";
	private String DBPEDIA_RESOURCE = "http://dbpedia.org/resource/";
	private String WIKIPEDIA_URL = "http://wikipedia.org/wiki/";
	
	public String getConceptId() {
		return conceptId;
	}
	public void setConceptId(String conceptId) {
		this.conceptId = conceptId;
	}
	public String getUri() {
		return uri;
	}
	public void setUri(String uri) {
		this.uri = uri;
	}
	public String getWikiUri() {
		if(uri == null || uri.equals("")) return "";
		return uri.replace(DBPEDIA_RESOURCE, WIKIPEDIA_URL);
	}
	public String getFbUri() {
		return FACEBOOK_URL+conceptId;
	}
	
	public void setWikiUri(String wiki){}
	public void setFbUri(String fb){}

    @Override
    public String toString() {
        return "BaseConcept{" +
                "uri='" + uri + '\'' +
                ", conceptId='" + conceptId + '\'' +
                '}';
    }
}
